<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Content-Language" content="zh-CN">
	<title>选课通知 - 智能选课系统</title>
	<style type="text/css">
		* {
			margin: 0;
			padding: 0;
			box-sizing: border-box;
			font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, sans-serif;
		}

		body {
			background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
			padding: 20px;
			min-height: 100vh;
			color: #333;
			line-height: 1.6;
		}

		.news-container {
			max-width: 1000px;
			margin: 0 auto;
			background: white;
			border-radius: 15px;
			box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
			overflow: hidden;
		}

		.news-header {
			background: linear-gradient(135deg, #667eea, #764ba2);
			color: white;
			padding: 25px 30px;
			text-align: center;
		}

		.news-header h1 {
			font-size: 28px;
			font-weight: 600;
			margin-bottom: 10px;
		}

		.news-meta {
			display: flex;
			justify-content: center;
			gap: 20px;
			font-size: 14px;
			opacity: 0.9;
			margin-top: 10px;
		}

		.news-content {
			padding: 30px;
		}

		.carousel-section {
			margin: 25px 0;
			text-align: center;
		}

		.carousel-title {
			font-size: 18px;
			color: #2c3e50;
			margin-bottom: 15px;
			font-weight: 600;
		}

		.carousel-container {
			position: relative;
			display: inline-block;
			border-radius: 15px;
			overflow: hidden;
			box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
			margin-bottom: 25px;
		}

		#obj {
			width: 100%;
			max-width: 700px;
			height: auto;
			border-radius: 10px;
			transition: opacity 0.5s ease;
			cursor: pointer;
		}

		.carousel-indicators {
			display: flex;
			justify-content: center;
			gap: 10px;
			margin-top: 15px;
		}

		.indicator {
			width: 12px;
			height: 12px;
			border-radius: 50%;
			background: #ddd;
			cursor: pointer;
			transition: all 0.3s;
		}

		.indicator.active {
			background: #667eea;
			transform: scale(1.2);
		}

		.notice-content {
			background: #f8f9fa;
			border-left: 4px solid #667eea;
			padding: 25px;
			border-radius: 12px;
			margin: 25px 0;
			box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
		}

		.notice-section {
			margin-bottom: 20px;
		}

		.notice-section h3 {
			color: #2c3e50;
			margin-bottom: 12px;
			font-size: 18px;
			display: flex;
			align-items: center;
		}

		.notice-section h3:before {
			content: "•";
			color: #667eea;
			font-size: 24px;
			margin-right: 10px;
		}

		.notice-content p {
			margin-bottom: 15px;
			text-align: justify;
		}

		.highlight {
			background: linear-gradient(135deg, #fff8e1, #f5f7fa);
			padding: 4px 8px;
			border-radius: 5px;
			font-weight: 600;
		}

		.important-note {
			background: #ffebee;
			border: 1px solid #ffcdd2;
			padding: 20px;
			border-radius: 12px;
			margin: 25px 0;
			position: relative;
			box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
		}

		.important-note:before {
			content: "!";
			position: absolute;
			left: -12px;
			top: 50%;
			transform: translateY(-50%);
			background: linear-gradient(135deg, #f44336, #e74c3c);
			color: white;
			width: 24px;
			height: 24px;
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			font-weight: bold;
		}

		.news-footer {
			background: #f8f9fa;
			padding: 20px;
			text-align: right;
			border-top: 1px solid #eaeaea;
			font-size: 14px;
			color: #7f8c8d;
			font-weight: 500;
		}

		@media (max-width: 768px) {
			.news-content {
				padding: 20px 15px;
			}

			#obj {
				max-width: 100%;
			}

			.news-header h1 {
				font-size: 22px;
			}

			.notice-content {
				padding: 15px;
			}
		}
		/* 按钮样式 */
		.btn {
			padding: 16px 28px;
			border: none;
			border-radius: 12px;
			font-size: 16px;
			font-weight: 600;
			cursor: pointer;
			transition: var(--transition);
			display: inline-flex;
			justify-content: center;
			align-items: center;
			gap: 10px;
			text-decoration: none;
			position: relative;
			overflow: hidden;
			z-index: 1;
		}

		.btn::before {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background: var(--primary-gradient);
			z-index: -1;
			opacity: 0;
			transition: opacity 0.3s ease;
		}

		.btn:hover::before {
			opacity: 1;
		}

		.btn-primary {
			background: var(--primary-gradient);
			color: white;
			box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.3);
		}

		.btn-primary:hover {
			transform: translateY(-3px);
			box-shadow: 0 15px 30px -5px rgba(102, 126, 234, 0.4);
		}

		.btn-secondary {
			background: rgba(255, 255, 255, 0.1);
			color: var(--text-primary);
			border: 2px solid var(--border-color);
		}

		.btn-secondary:hover {
			background: rgba(255, 255, 255, 0.2);
			transform: translateY(-3px);
			box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
		}
		.center-text {
			text-align: center;
			margin-top: 30px;
		}
	</style>
	<script type="text/javascript">
		/* 图片每3秒循环换 */
		var curIndex = 0;
		var timeInterval = 3000;
		var arr = new Array();
		arr[0] = "${pageContext.request.contextPath}/images/1.png";
		arr[1] = "${pageContext.request.contextPath}/images/2.png";
		arr[2] = "${pageContext.request.contextPath}/images/3.png";
		arr[3] = "${pageContext.request.contextPath}/images/4.png";
		arr[4] = "${pageContext.request.contextPath}/images/5.png";

		var intervalId = setInterval(changeImg, timeInterval);

		function changeImg() {
			if (curIndex == arr.length - 1) {
				curIndex = 0;
			} else {
				curIndex += 1;
			}
			updateImage();
		};

		function updateImage() {
			var obj = document.getElementById("obj");
			obj.src = arr[curIndex];

			// 更新指示器
			var indicators = document.querySelectorAll('.indicator');
			indicators.forEach(function(indicator, index) {
				if (index === curIndex) {
					indicator.classList.add('active');
				} else {
					indicator.classList.remove('active');
				}
			});
		}

		function setImage(index) {
			curIndex = index;
			updateImage();
			// 重置计时器
			clearInterval(intervalId);
			intervalId = setInterval(changeImg, timeInterval);
		}

		window.onload = function() {
			document.getElementById("obj").onclick = function() {
				if (curIndex == arr.length - 1) {
					curIndex = 0;
				} else {
					curIndex += 1;
				}
				updateImage();
			}

			// 初始化指示器
			updateImage();
		}
	</script>
</head>
<body>
<div class="news-container">
	<div class="news-header">
		<h1>2025-2026学年第一学期本科生公共体育课选课通知</h1>
		<div class="news-meta">
			<span>发布部门：教务处</span>
			<span>发布时间：2025年9月5日</span>
		</div>
	</div>

	<div class="news-content">
		<div class="notice-content">
			<p>各教学单位、各位同学：</p>
			<p>2025-2026学年第一学期2025级本科生公共体育课上课时间地点已安排完毕，体育课任课教师通过网络综合教务系统选定。现将有关事项通知如下：</p>
		</div>

		<div class="carousel-section">
			<div class="carousel-title">校园活动风采</div>
			<div class="carousel-container">
				<img id="obj" src="${pageContext.request.contextPath}/images/1.png" alt="校园活动图片">
			</div>
			<div class="carousel-indicators">
				<div class="indicator" onclick="setImage(0)"></div>
				<div class="indicator" onclick="setImage(1)"></div>
				<div class="indicator" onclick="setImage(2)"></div>
				<div class="indicator" onclick="setImage(3)"></div>
				<div class="indicator" onclick="setImage(4)"></div>
			</div>
		</div>

		<div class="notice-section">
			<h3>一、时间安排</h3>
			<p>2025年9月10日13：00至9月11日13：00为2025级本科生网上选课时间。</p>
		</div>

		<div class="notice-section">
			<h3>二、操作方法</h3>
			<p><strong>（一）选课操作方法</strong></p>
			<p>学生可登陆选课系统，点击＂选课管理＂列表中的"选课"按钮，进入选课界面，按照自己的喜好和需求选择相对应的课。</p>

			<p><strong>（二）退选操作方法</strong></p>
			<p>在选课页面左侧，"选课管理"列表中选择"退课"，可查看到已选课程，点击需要删除的课程后面的退课按钮，即可退选该课程。</p>

			<p><strong>（三）补选操作方法</strong></p>
			<p>补选操作方法与步骤与选课相同。</p>
		</div>

		<div class="notice-section">
			<h3>三、注意事项</h3>
			<p><strong>（一）</strong>选课时要特别注意"选课限制说明"，限制说明里标注了体育项目名称、任课教师、上课地点、性别要求、可选课学生的院系等信息。（详见附件1）不要选择不符合条件的项目，以免影响选课结果。注意，每位同学至多只可选择一门课程(体育项目)。</p>

			<p><strong>（二）</strong>体育项目中注明"男"或"女"性别要求的课程采用的选课方式为"直选式"，即选即得，以时间先后为优先级，直至选满，直选式课堂选课提交后显示选课状态为"选中"。个别混合性别课堂为先分男女班选课，选课结束后合并课堂，所以显示课容量会较小。如果选满可以选择其他体育项目，后期人工补选也是优先置入未选满的课堂。</p>

			<p><strong>（三）</strong>在自由选择的查询页面中，可使用多个条件组合对课程（项目）进行模糊查询。</p>

			<div class="important-note">
				<p><strong>（四）</strong>在非选课阶段，因需进行系统调试，会暂时开放选课系统，在此期间的所有选课数据一律无效，教务处（及体育学院）有权对此无效选课数据进行删除，特此说明。</p>

				<p><strong>（五）</strong>建议选课操作采用PC电脑进行，使用手机进行选课可能会造成信息错误，由此引起的后果由学生承担。</p>
			</div>
		</div>
	</div>

	<div class="news-footer">
		智能选课系统 · 教务处发布
	</div>
</div>
<div class="center-text">
	<a href="javascript:history.back()" class="btn btn-secondary">
		<i class="fas fa-arrow-left"></i> 返回
	</a>
</div>
</body>
</html>